package dao;

import java.util.List;

import org.hibernate.Session;

import modele.Articletaxe;


import persistence.BaseDAO;

public class ArticletaxeDAO{
	
	public static void ajouterArticletaxe(Articletaxe articletaxe, Session session) throws Exception{
		BaseDAO.getInstance().ajouter(articletaxe,session);
	}

	public static void modifierArticletaxe(Articletaxe articletaxe, Session session) {
		BaseDAO.getInstance().modifier(articletaxe,session);
	}

	public static void SupprimerArticletaxe(Articletaxe articletaxe, Session session) {
		BaseDAO.getInstance().delete(articletaxe,session);
	}

	public static Articletaxe getArticletaxe(int id, Session session) {
		return (Articletaxe)BaseDAO.getInstance().getObject(Articletaxe.class, id,session);
	}

	public static List getListeArticletaxe(String requette, Session session) {
		return BaseDAO.getInstance().getListObject(requette,session);
	}

}
